﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "finddesktop.h"
//#include "webwindow.h"
#include <QCloseEvent>
#include <QFile>
#include <QFileDialog>
#include <QMessageBox>
#include "mainwindowtest.h"
#include <QSystemTrayIcon>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    HWND desktopWnd;//桌面句柄

    void init();
private slots:
    void systemExit(bool);

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::MainWindow *ui;
    MainWindowTest t;

    QSystemTrayIcon * trayIcon;
    QAction *action_exit;
    void closeEvent(QCloseEvent *event);//重写关闭事件
    void setSystemMenu();


};

#endif // MAINWINDOW_H
